<template>
  <div class="container">
    <!-- <div class="box">
      <header class="header"></header>
      <div class="content"></div>
    </div> -->
    <router-view></router-view>
    <router-view name="footer"></router-view>
    <!-- <router-view name="footer"></router-view> -->
    <!-- <footer class="footer">
      <ul>
        <router-link to="/home" tag="li">
          <span class="iconfont icon-shouye"></span>
          <p>首页</p>
        </router-link>
        <router-link to="/kind" tag="li">
          <span class="iconfont icon-fenlei"></span>
          <p>分类</p>
        </router-link>
        <router-link to="/cart" tag="li">
          <span class="iconfont icon-che"></span>
          <p>购物车</p>
        </router-link>
        <router-link to="/user" tag="li">
          <span class="iconfont icon-my"></span>
          <p>我的</p>
        </router-link>
      </ul>
    </footer> -->

  </div>
</template>

<style lang='scss'>
* {
  padding: 0;
  margin: 0;
  list-style: none;
}
html,
body,
.container {
  height: 100%;
}
html {
  font-size: 26.6666666vw;
}
body {
  font-size: 14px;
}
@media all and (orientation: landscape){
  body {
    font-size: 100px;
  }
  .container {
    font-size: 14px;
    max-width: 640px;
    margin: 0 auto;
  }
}
.container {
  display: flex;
  flex-direction: column;
  .box {
    flex: 1;
    overflow: auto;
    display: flex;
    flex-direction: column;
    .header {
      height: 0.44rem;
      background-color: #f66;
    }
    .content {
      flex: 1;
      overflow: auto;
    }
  }
  .footer {
    height: 0.5rem;
    background-color: #efefef;
    ul {
      display: flex;
      height: 100%;
      li{
        flex: 1;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        &.router-link-active {
          color: #f66;
        }
        span{
          font-size: 0.24rem;
        }
        p{
          font-size:  0.12rem;
        }
      }
    }
  }
}
</style>
<script>
export default {
  data () {
    return {}
  },

  components: {},

  computed: {},

  mounted () {},

  methods: {}
}
</script>
